package asruby.runtime.callsite
{
	import asruby.lang.RubyFixnum;
	import asruby.runtime.IRubyObject;
	import asruby.runtime.ThreadContext;
		
    public class PlusCallSite extends InlineCachingCallSite {
        public function  PlusCallSite(){
            super("+", CallType.NORMAL);
        }
        
        public override function call(context:ThreadContext, self:IRubyObject, arg:IRubyObject):IRubyObject{
            if (self instanceof RubyFixnum) {
                return (self).op_plus(context, arg);
            }
            
            return super.call(context, self, arg);
        }
    }
  
}